"""

    Cookie:存放一些用户的状态，比如登录状态

    前后端分离：Ajax发起的请求
"""
import requests

# headers = {
#     "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
#     "Cookie": "Hm_lvt_985c57aa6304c183e46daae6878b243b=1727491768,1727527844; HMACCOUNT=49E8FACF46AC7CA8; userid=1245391; username=%2A%2A%2A1621; userkey=99b446e1be2173d4b796ad7043c65459; Hm_lpvt_985c57aa6304c183e46daae6878b243b=1727528178"
# }
# response = requests.get("https://www.bqgda.cc/user/bookcase.html", headers=headers)
#
# with open("bqg.html", "w", encoding="utf8") as f:
#     f.write(response.text)

url = "https://www.bqgda.cc/user/action.html?action=bookcase&t=1727528435248"
response = requests.get(url)
print(response.json())

